package maldade.service;

/**
 * Factory to get all services instances.
 * 
 * @author rnojiri
 */
public class ServiceFactory
{
	private static ExampleService exampleService;
	
	/**
	 * Hidden.
	 */
	private ServiceFactory()
	{
		
	}
	
	/**
	 * Returns the example service instance.
	 * 
	 * @return ExampleService
	 */
	public static ExampleService getExampleService()
	{
		if(exampleService == null)
		{
			exampleService = new ExampleService();
		}

		return exampleService;
	}
}
